package com.ycj.config;

import com.ycj.dao.CustomerPreferenceDao;
import com.ycj.dao.MovieCatalog;
import lombok.extern.java.Log;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Primary;
import org.springframework.core.annotation.Order;

@Log
@Configuration
@Order(2)
public class SecondConfig {
    @Bean
    public MovieCatalog<Integer> movieCatalog(){
        log.info(this.getClass().getName() + " {} init...");
        return new MovieCatalog();
    }
//    @Primary
    @Bean
    public MovieCatalog<String> movieCatalog2(){
        log.info(this.getClass().getName() + " movieCatalog2 init...");
        return new MovieCatalog();
    }
}
